package com.exam.mapper;

import com.exam.entity.FillQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;
import java.util.Optional;

@Repository
public interface FillQuestionRepository extends JpaRepository<FillQuestion, Long> {
    Page<FillQuestion> findAll(Pageable pageable);
    // 查重方法
    Optional<FillQuestion> findBySubjectAndQuestionAndAnswer(String subject, String question, String answer);
}